import { ignoreTimeZone, messages } from "share/common";
import moment from "moment";

/**
 * 存储常量值
 */
const color = {
  processing: "#55B1F2",
  success: "#4DC690",
  error: "#FF6680",
  closed: "#B5C0CE",
  warning: "#F2C849",
  "weak-warn": "#677CDA",
};
export default {
  // SQ003和SQ004卡券类型，卡券发放类型固定
  CuxRender (filterObj={}) {
    const {formCode, fieldCode, messageKey}=filterObj
    let FORMCODE=  ['SQ003','SQ004'].includes(formCode),
     NOTMESSAGEKEY= ['SQ003','SQ004'].includes(formCode)&& ['kq','fafangleixing'].includes(fieldCode),
    ALL= ['SQ003','SQ004'].includes(formCode)&& ['kq','fafangleixing'].includes(fieldCode)&&messageKey==='cust_list'
    return {
      FORMCODE,
      NOTMESSAGEKEY,
      ALL
    }
  },
  getMCDFormTypeCodeByValue(value) {
    const text = this.getTextByValue(value, "documentType");
    if (text.match(/报销/i)) return 2;
    if (text.match(/申请/i)) return 1;
    if (text.match(/借款/i)) return 3;
    return 4;
  },

  getTextByValue(value, type, attr = "text") {
    let result = "";
    if (this[type]) {
      this[type].map((item) => {
        if (`${item.value}` === `${value}`) result = item[attr];
      });
    }
    return result;
  },
  apportionInvoiceType: ["01", "03", "004", "005", "007", "008", "009", "010"],
  documentType: [
    {
      value: 3001,
      text: messages("components.key192" /* 报销单 */), // 报销单
    },
    {
      value: 2001,
      text: messages("components.key193" /* 差旅申请单 */), // 差旅
    },
    {
      value: 2002,
      text: messages("components.key194" /* 费用申请单 */), // 费用
    },
    {
      value: 2003,
      text: messages("components.key195" /* 订票申请单 */), // 订票
      // }, {
      //   value: 2004,
      //   text: messages('documentType.jd.request') //京东
    },
    {
      value: 2005,
      text: messages("components.key701") /* 单行借款单 */,
    },
    {
      value: 2006,
      text: messages("components.key702") /* 多行借款单 */,
    },
  ],
  printDocumentType: [
    {
      value: 3001,
      text: messages("components.key197" /* 日常报销单 */), // 日常报销单
    },
    //   {
    //   value: 2001,
    //   text: messages('email.notification.travel.request')  //差旅申请单
    // }, {
    //   value: 2002,
    //   text: messages('email.notification.special.expense.request') //费用申请单
    // },
    {
      value: 2005,
      text: messages("components.key198" /* 借款申请单 */), // 借款申请单
    },
    {
      value: 3002,
      text: messages("components.key199" /* 差旅报销单 */), // 差旅报销单
    },
    {
      value: 3003,
      text: messages("components.key200" /* 费用报销单 */), // 费用报销单
    },
  ],
  documentTypeForShow: [
    {
      value: 3001,
      text: messages("components.key197" /* 日常报销单 */), // 日常报销单
    },
    {
      value: 3002,
      text: messages("components.key199" /* 差旅报销单 */), // 差旅报销单
    },
    {
      value: 3003,
      text: messages("components.key200" /* 费用报销单 */), // 费用报销单
    },
    {
      value: 2001,
      text: messages("components.key193" /* 差旅申请单 */), // 差旅
    },
    {
      value: 2002,
      text: messages("components.key194" /* 费用申请单 */), // 费用
    },
    {
      value: 2003,
      text: messages("components.key195" /* 订票申请单 */), // 订票
    },
    {
      value: 2004,
      text: messages("components.key201" /* 京东申请单 */), // 京东
    },
    {
      value: 2005,
      text: messages("components.key701") /* 单行借款单 */,
    },
    {
      value: 2006,
      text: messages("components.key702") /* 多行借款单 */,
    },
  ],
  visibleUserScope: [
    {
      value: 1001,
      code: "all",
      text: messages("components.key202" /* 所有 */), // 所有
    },
    {
      value: 1002,
      code: "group",
      text: messages("components.key203" /* 人员组 */), // 人员组
    },
    {
      value: 1003,
      code: "department",
      text: messages("components.key204" /* 部门员工 */), // 部门员工
    },
    {
      value: 1004,
      code: "request",
      text: messages("components.key205" /* 和关联的申请单一致 */), // 和关联的申请单范围一致
    },
  ],
  visibleExpenseTypeScope: [
    {
      value: 1001,
      code: "all",
      text: messages("components.key206" /* 所有类型 */), // 所有类型
    },
    {
      value: 1002,
      code: "part",
      text: messages("components.key207" /* 部分类型 */), // 部分类型
    },
    {
      value: 1003,
      code: "application1",
      text: messages("components.key208" /* 和关联的申请单据范围一致 */), // 和关联的申请单据范围一致
    },
    {
      value: 1004,
      code: "application2",
      text: messages("components.key209" /* 和关联的申请表单范围一致 */), // 和关联的申请表单范围一致
    },
  ],
  visibleCompanyScope: [
    {
      value: 1,
      text: messages("components.key210" /* 全部适用 */), // 全部适用
    },
    {
      value: 2,
      text: messages("components.key211" /* 部分适用 */), // 部分适用
    },
  ],
  CurrencyCode: {
    USD: "$",
    CNY: "¥",
    EUR: "€",
    JPY: "J¥",
    SGD: "S$",
    KRW: "₩",
    GBP: "£",
    CAD: "CAN$",
    TWD: "NT$",
    HKD: "HK$",
    AUD: "A$",
    CHF: "Fr",
    MYR: "M.＄",
    ZAR: "R",
    THB: "฿",
    SEK: "kr",
    KES: "K.Sh",
    DKK: "kr",
    CLP: "P",
    PHP: "₱",
    MXN: "$",
    AED: "د.إ",
    INR: "₨",
    RUB: "руб",
    BRL: "R$",
    NZD: "NZ$",
  },
  MESSAGE_KEY: {
    costCenter: "select_cost_center", // 成本中心
    currencyCode: "currency_code", // 币种
    title: "title", // 事由
    number: "number", // 数字
    remark: "remark", // 备注
    department: "select_department", // 部门
    approver: "select_approver", // 审批人
    writeoff: "writeoff_flag", // 核销
    startDate: "start_date", // 开始日期
    endDate: "end_date", // 结束日期
    bookingPerson: "select_special_booking_person", // 订票专员
    budgetDetail: "budget_detail", // 预算明细
    supplier: "select_supplier", // 选择供应商
    participant: "select_participant", // 参与人
    totalBudget: "total_budget", // 总预算
    destination: "destination", // 目的地
    airTicketSupplier: "select_air_ticket_supplier", // 机票供应商
    outParticipantNum: "out_participant_num", // 外部参与人员数量
    outParticipantName: "out_participant_name", // 外部参与人员姓名
    selectCorporationEntity: "select_corporation_entity", // 法人实体
    selectCompany: "select_company", // 公司
    linkageSwitch: "linkage_switch", // 联动开关
    textArea: "text_area", // 多行输入框
    attachment: "attachment", // 附件
    contactBankAccount: "contact_bank_account", // 银行卡关联
    date: "date", // 日期
    applicant: "applicant", // 申请人
    selectBox: "select_box", // 选择框
    custList: "cust_list", // 值列表
    time: "time", // 时间
    switch: "switch", // 开关
    venMaster: "venMaster", // 收款单位/个人
    yfAudit: "ying_fu_select_approver", // 英孚选择审批人控件
    selectUser: "select_user", // 选择用户
    substitutionInvoice: "substitution_invoice", // 替票
    image: "image", // 图片
    vatInvoice: "vat_invoice", // 收款单位/个人
    apportion: "exp_allocate", // 费用分摊
    dateTime: "dateTime", // 日期时间
    venMasterSwitch: "venMasterSwitch", // 是否对供应商支付
    employeeExpand: "employee_expand", // 个人信息扩展字段
    payee: "payee", // 付款控件
    externalParticipantName: "external_participant_name", // 乘机人姓名
  },
  expenseStatus: [
    {
      label: messages("components.key212" /* 编辑中 */),
      value: "10011000",
      state: "processing",
      operate: "edit",
      color: color.processing,
    }, // 编辑中 rejectType= 1001,1000
    {
      label: messages("components.key213" /* 已撤回 */),
      value: "10011001",
      state: "warning",
      operate: "edit",
      color: color.warning,
    }, // 已撤回 rejectType === 1001
    {
      label: messages("components.key214" /* 审批中 */),
      value: "1002",
      state: "processing",
      operate: "processing",
      color: color.processing,
    }, // 审批中
    {
      label: messages("components.key215" /* 已驳回 */),
      value: "10011002",
      state: "error",
      operate: "edit",
      color: color.error,
    }, // 已驳回 rejectType === 1002
    {
      label: messages("components.key216" /* 已通过 */),
      value: "1003",
      state: "success",
      operate: "finish",
      color: color.success,
    }, // 已通过
    {
      label: messages("components.key1324") /* 预审通过 */,
      value: "1010",
      state: "success",
      operate: "finish",
      color: color.success,
    }, // 预审通过
    {
      label: messages("components.key1348" /* 复审通过 */),
      value: "1004",
      state: "success",
      operate: "finish",
      color: color.success,
    }, // 复审通过
    // {
    //   label: messages("components.key1348" /* 开票通过 */),
    //   value: "1007",
    //   state: "success",
    //   operate: "billing",
    //   color: color.success,
    // }, // 开票通过
    {
      label: messages("components.key219" /* 审核驳回 */),
      value: "10011003",
      state: "error",
      operate: "edit",
      color: color.error,
    }, // 审核驳回 rejectType === 1003
    {
      label: messages("components.key220" /* 开票驳回 */),
      value: "10011004",
      state: "error",
      operate: "edit",
      color: color.error,
    }, // 开票驳回 rejectType === 1004
    {
      label: messages("components.key221" /* 已付款 */),
      value: "1005",
      state: "success",
      operate: "pay",
      color: color.closed,
    }, // 已付款
    // {
    //   label: messages("components.key222" /* 付款中 */),
    //   value: "1008",
    //   state: "processing",
    //   operate: "pay",
    //   color: color.processing,
    // }, // 付款中
    {
      label: messages("components.key703") /* 取消支付 */,
      value: "1015",
      state: "error",
      operate: "cancel",
      color: color.error,
    }, // 取消支付
    {
      label: messages("components.keyS01") /* 已出库 */,
      value: "10121000",
      state: "error",
      operate: "cancel",
      color: color.error,
    },
    {
      label: messages("components.keyS02" /* 已签收 */),
      value: "10131000",
      state: "processing",
      operate: "edit",
      color: color.processing,
    },
    {
      label: messages("components.keyS03") /* 待发货 */,
      value: "1014",
      state: "success",
      operate: "finish",
      color: color.success
    },
    {
      label: messages("components.keyS04") /* 已发货 */,
      value: "1016",
      state: "success",
      operate: "finish",
      color: color.success
    },
    {
      label: messages("components.keyS05") /* 已确认 */,
      value: "1017",
      state: "success",
      operate: "finish",
      color: color.success
    },
    {
      label: messages("components.keyS06") /* 发货中 */,
      value: "1018",
      state: "success",
      operate: "finish",
      color: color.success
    },
    {
      label: messages("components.keyS07") /* 待发放 */,
      value: "1019",
      state: "success",
      operate: "finish",
      color: color.success
    },
  ],
  documentStatus: [
    {
      text: messages("components.key223" /* 全部 */),
      value: "10011002100310041005100610071008",
      operate: "",
    }, // 全部
    {
      text: messages("components.key212" /* 编辑中 */),
      value: "1001",
      state: "processing",
      operate: "edit",
      color: color.processing,
    }, // 编辑中
    {
      text: messages("components.key213" /* 已撤回 */),
      value: "10011001",
      state: "warning",
      operate: "edit",
      color: color.warning,
    }, // 已撤回 rejectType === 1001
    {
      text: messages("components.key215" /* 已驳回 */),
      value: "10011002",
      state: "error",
      operate: "edit",
      color: color.error,
    }, // 已驳回 rejectType === 1002
    {
      text: messages("components.key219" /* 审核驳回 */),
      value: "10011003",
      state: "error",
      operate: "edit",
      color: color.error,
    }, // 审核驳回 rejectType === 1003
    {
      text: messages("components.key220" /* 开票驳回 */),
      value: "10011004",
      state: "error",
      operate: "edit",
      color: color.error,
    }, // 开票驳回 rejectType === 1004
    {
      text: messages("components.key214" /* 审批中 */),
      value: "1002",
      state: "processing",
      operate: "processing",
      color: color.processing,
    }, // 审批中
    {
      text: messages("components.key216" /* 已通过 */),
      value: "1003",
      state: "success",
      operate: "finish",
      color: color.success,
    }, // 已通过
    {
      text: messages("components.key1324") /* 预审通过 */,
      value: "1010",
      state: "success",
      operate: "",
      color: color.success,
    },
    {
      text: messages("components.key1348" /* 复审通过 */),
      value: "1004",
      state: "success",
      operate: "finish",
      color: color.success,
    }, // 审核通过
    {
      text: messages("components.key221" /* 已付款 */),
      value: "1005",
      state: "success",
      operate: "pay",
      color: color.closed,
    }, // 已付款
    {
      text: messages("components.key224" /* 还款中 */),
      value: "1006",
      state: "processing",
      operate: "processing",
      color: color.processing,
    }, // 还款中
    {
      text: messages("components.key1348" /* 复审通过 */),
      value: "1007",
      state: "success",
      operate: "billing",
      color: color.success,
    }, // 复审通过
    {
      text: messages("components.key225" /* 已还款 */),
      value: "10072006",
      state: "success",
      operate: "finish",
      color: color.success,
    }, // 已还款 applicationType === 2006
    {
      text: messages("components.key225" /* 已还款 */),
      value: "10072005",
      state: "success",
      operate: "finish",
      color: color.success,
    }, // 已还款 applicationType === 2005
    // {
    //   text: messages("components.key222" /* 付款中 */),
    //   value: "1008",
    //   state: "processing",
    //   operate: "pay",
    //   color: color.processing,
    // }, // 付款中
    {
      text: messages("components.key226" /* 已关闭 */),
      value: "1009",
      state: "default",
      operate: "",
      color: color.closed,
    }, // 已关闭
    {
      text: messages("components.key227" /* 已更改 */),
      value: "1011",
      state: "default",
      operate: "",
      color: color.closed,
    }, // 已更改\
    {
      text: messages("components.key703") /* 取消支付 */,
      value: "1015",
      state: "error",
      operate: "",
      color: color.error,
    }, // 取消支付
    {
      text: messages("components.keyS02") /* 已签收 */,
      value: "1013",
      state: "error",
      operate: "",
      color: color.success
    },
    {
      text: messages("components.keyS01") /* 已出库 */,
      value: "1012",
      state: "error",
      operate: "",
      color: color.error
    },
    {
      text: messages("components.keyS03") /* 待发货 */,
      value: "1014",
      state: "success",
      operate: "",
      color: color.success
    },
    {
      text: messages("components.keyS04") /* 已发货 */,
      value: "1016",
      state: "success",
      operate: "",
      color: color.success
    },
    {
      text: messages("components.keyS05") /* 已确认 */,
      value: "1017",
      state: "success",
      operate: "",
      color: color.success
    },
    {
      text: messages("components.keyS06") /* 发货中 */,
      value: "1018",
      state: "success",
      operate: "",
      color: color.success
    },
    {
      text: messages("components.keyS07") /* 待发放 */,
      value: "1019",
      state: "success",
      operate: "",
      color: color.success
    },
  ],
  documentStatusExpenseView: [
    {
      text: messages("components.key223" /* 全部 */),
      value: "10011002100310041005100610071008",
      operate: "",
    }, // 全部
    {
      text: messages("components.key212" /* 编辑中 */),
      value: "1001",
      state: "processing",
      operate: "edit",
      color: color.processing,
    }, // 编辑中
    {
      text: messages("components.key213" /* 已撤回 */),
      value: "10011001",
      state: "warning",
      operate: "edit",
      color: color.warning,
    }, // 已撤回 rejectType === 1001
    {
      text: messages("components.key215" /* 已驳回 */),
      value: "10011002",
      state: "error",
      operate: "edit",
      color: color.error,
    }, // 已驳回 rejectType === 1002
    {
      text: messages("components.key219" /* 审核驳回 */),
      value: "10011003",
      state: "error",
      operate: "edit",
      color: color.error,
    }, // 审核驳回 rejectType === 1003
    {
      text: messages("components.key220" /* 开票驳回 */),
      value: "10011004",
      state: "error",
      operate: "edit",
      color: color.error,
    }, // 开票驳回 rejectType === 1004
    {
      text: messages("components.key214" /* 审批中 */),
      value: "1002",
      state: "processing",
      operate: "processing",
      color: color.processing,
    }, // 审批中
    {
      text: messages("components.key214" /* 审批中 */),
      value: "1003",
      state: "processing",
      operate: "processing",
      color: color.processing,
    }, // 已通过
    {
      text: messages("components.key1324") /* 预审通过 */,
      value: "1010",
      state: "success",
      operate: "",
      color: color.success,
    },
    {
      text: messages("components.key1348" /* 复审通过 */),
      value: "1004",
      state: "success",
      operate: "finish",
      color: color.success,
    }, // 审核通过
    {
      text: messages("components.key221" /* 已付款 */),
      value: "1005",
      state: "success",
      operate: "pay",
      color: color.closed,
    }, // 已付款
    {
      text: messages("components.key224" /* 还款中 */),
      value: "1006",
      state: "processing",
      operate: "processing",
      color: color.processing,
    }, // 还款中
    {
      text: messages("components.key1348" /* 复审通过 */),
      value: "1007",
      state: "success",
      operate: "billing",
      color: color.success,
    }, // 复审通过
    {
      text: messages("components.key225" /* 已还款 */),
      value: "10072006",
      state: "success",
      operate: "finish",
      color: color.success,
    }, // 已还款 applicationType === 2006
    {
      text: messages("components.key225" /* 已还款 */),
      value: "10072005",
      state: "success",
      operate: "finish",
      color: color.success,
    }, // 已还款 applicationType === 2005
    // {
    //   text: messages("components.key222" /* 付款中 */),
    //   value: "1008",
    //   state: "processing",
    //   operate: "pay",
    //   color: color.processing,
    // }, // 付款中
    {
      text: messages("components.key226" /* 已关闭 */),
      value: "1009",
      state: "default",
      operate: "",
      color: color.closed,
    }, // 已关闭
    {
      text: messages("components.key227" /* 已更改 */),
      value: "1011",
      state: "default",
      operate: "",
      color: color.closed,
    }, // 已更改\
    {
      text: messages("components.key703") /* 取消支付 */,
      value: "1015",
      state: "error",
      operate: "",
      color: color.error,
    }, // 取消支付
    {
      text: messages("components.keyS02") /* 已签收 */,
      value: "1013",
      state: "error",
      operate: "",
      color: color.success
    },
    {
      text: messages("components.keyS01") /* 已出库 */,
      value: "1012",
      state: "error",
      operate: "",
      color: color.error
    },
  ],
  loanStatus: [
    {
      label: messages("components.key212" /* 编辑中 */),
      value: "10011000",
      state: "processing",
      operate: "edit",
    }, // 编辑中 rejectType= 1001,1000
    {
      label: messages("components.key213" /* 已撤回 */),
      value: "10011001",
      state: "warning",
      operate: "edit",
    }, // 已撤回 rejectType === 1001
    {
      label: messages("components.key214" /* 审批中 */),
      value: "1002",
      state: "processing",
      operate: "processing",
    }, // 审批中
    {
      label: messages("components.key215" /* 已驳回 */),
      value: "10011002",
      state: "error",
      operate: "edit",
    }, // 已驳回 rejectType === 1002
    {
      label: messages("components.key216" /* 已通过 */),
      value: "1003",
      state: "success",
      operate: "finish",
    }, // 已通过
    {
      label: messages("components.key217" /* 审核通过 */),
      value: "1004",
      state: "success",
      operate: "finish",
    }, // 审核通过
    {
      label: messages("components.key219" /* 审核驳回 */),
      value: "10011003",
      state: "error",
      operate: "edit",
    }, // 审核驳回 rejectType === 1003
    {
      label: messages("components.key221" /* 已付款 */),
      value: "1005",
      state: "success",
      operate: "pay",
    }, // 已付款
    {
      label: messages("components.key241") /* 还款中 */,
      value: "1006",
      state: "processing",
      operate: "pay",
    }, // 还款中
    {
      label: messages("components.key225") /* 已还款 */,
      value: "1007",
      state: "success",
      operate: "finish",
    }, // 已还款
    {
      label: messages("components.key222" /* 付款中 */),
      value: "1008",
      state: "processing",
      operate: "pay",
    }, // 付款中
    {
      label: messages("components.key1318" /* 转永久 */),
      value: "1011",
      state: "success",
      operate: "finish",
    }, // 转永久
    {
      label: messages("financial-management.key1239" /* 延长还款 */),
      value: "1012",
      state: "success",
      operate: "finish",
    }, // 延长还款
  ],
  paymentMethodCategory: [
    {
      value: "ONLINE_PAYMENT",
      text: messages("components.key228" /* 线上 */),
    },
    {
      value: "OFFLINE_PAYMENT",
      text: messages("components.key229" /* 线下 */),
    },
    {
      value: "EBANK_PAYMENT",
      text: messages("components.key230" /* 落地文件 */),
    },
  ],
  expenseReportChildrenType: [
    {
      id: "er.split.receipt",
      name: messages("components.key231" /* 贴票费用 */),
    },
    {
      id: "er.split.ctrip",
      name: messages("components.key232" /* 携程金额 */),
    },
    { id: "er.split.didi", name: messages("components.key233" /* 滴滴出行 */) },
    {
      id: "er.split.changguan",
      name: messages("components.key234" /* 场馆金额 */),
    },
    {
      id: "er.split.huafei",
      name: messages("components.key235" /* 话费金额 */),
    },
    {
      id: "er.split.youka",
      name: messages("components.key236" /* 油卡金额 */),
    },
    {
      id: "er.split.default",
      name: messages("components.key237" /* 类型未知 */),
    },
  ],
  invoiceChildrenStatus: [
    // 驳回逻辑
    { id: 1001, type: 1001, name: messages("components.key213" /* 已撤回 */) },
    { id: 1001, type: 1002, name: messages("components.key238" /* 已驳回 */) },
    {
      id: 1001,
      type: 1003,
      name: messages("components.key239" /* 审核驳回 */),
    },
    {
      id: 1001,
      type: 1004,
      name: messages("components.key240" /* 开票驳回 */),
    },
    { id: 1002, type: 1000, name: messages("components.key214" /* 审批中 */) },
    { id: 1003, type: 1000, name: messages("components.key216" /* 已通过 */) },
    {
      id: 1004,
      type: 1000,
      name: messages("components.key217" /* 审核通过 */),
    },
    { id: 1005, type: 1000, name: messages("components.key221" /* 已付款 */) },
    { id: 1006, type: 1000, name: messages("components.key241" /* 还款中 */) },
    {
      id: 1007,
      type: 1000,
      name: messages("components.key218" /* 开票通过 */),
    },
    { id: 1008, type: 1000, name: messages("components.key222" /* 付款中 */) },
  ],
  approvelHistory: [
    {
      id: 1,
      text: messages("components.key242" /* 提交 */),
      icon: "up-circle-o",
      color: color.processing,
    },
    {
      id: 2,
      text: messages("components.key243" /* 撤回 */),
      icon: "down-circle-o",
      color: color.warning,
    },
    {
      id: 3,
      text: messages("components.key244" /* 提交贴票 */),
      icon: "down-circle-o",
      color: color.warning,
    },
    {
      id: 11,
      text: messages("components.key245" /* 审批通过 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 12,
      text: messages("components.key246" /* 审批驳回 */),
      icon: "close-circle-o",
      color: color.error,
    },
    {
      id: 21,
      text: messages("components.key247" /* 贴票通过 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 22,
      text: messages("components.key248" /* 贴票驳回 */),
      icon: "close-circle-o",
      color: color.error,
    },
    {
      id: 31,
      text: messages("components.key218" /* 开票通过 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 32,
      text: messages("components.key240" /* 开票驳回 */),
      icon: "close-circle-o",
      color: color.error,
    },
    {
      id: 33,
      text: messages("components.key847") /* 滴滴退款 */,
      icon: "close-circle-o",
      color: color.error,
    },
    {
      id: 1001,
      text: messages("components.key242" /* 提交 */),
      icon: "up-circle-o",
      color: color.processing,
    },
    {
      id: 1002,
      text: messages("components.key243" /* 撤回 */),
      icon: "down-circle-o",
      color: color.warning,
    },
    {
      id: 1003,
      text: messages("components.key249" /* 申请单更改 */),
      icon: "up-circle-o",
      color: color.processing,
    },
    {
      id: 2001,
      text: messages("components.key245" /* 审批通过 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 2002,
      text: messages("components.key246" /* 审批驳回 */),
      icon: "close-circle-o",
      color: color.error,
    },
    {
      id: 2003,
      text: messages("components.key250" /* 单笔驳回 */),
      icon: "close-circle-o",
      color: color.error,
    },
    {
      id: 3001,
      text: messages("components.key251" /* 审核通过 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 3002,
      text: messages("components.key239" /* 审核驳回 */),
      icon: "close-circle-o",
      color: color.error,
    },
    {
      id: 3003,
      text: messages("components.key252" /* 财务已收单 */),
      icon: "up-circle-o",
      color: color.processing,
    },
    {
      id: 3004,
      text: messages("components.key253" /* 财务预检 */),
      icon: "up-circle-o",
      color: color.processing,
    },
    {
      id: 3005,
      text: messages("components.key254" /* 退回 */),
      icon: "close-circle-o",
      color: color.error,
    },
    {
      id: 3006,
      text: messages("components.key255" /* 财务通知 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 3007,
      text: messages("components.key256" /* 寄单成功 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 4000,
      text: messages("components.key257" /* 财务付款中 */),
      icon: "clock-circle-o",
      color: color.processing,
    },
    {
      id: 4001,
      text: messages("components.key258" /* 财务付款 */),
      icon: "pay-circle-o",
      color: color["weak-warn"],
    },
    {
      id: 4002,
      text: messages("components.key259" /* 付款失败 */),
      icon: "close-circle-o",
      color: color.error,
    },
    {
      id: 4003,
      text: messages("components.key778") /* 信用付款 */,
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 4011,
      text: messages("components.key260" /* 财务已开票 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 4012,
      text: messages("components.key240" /* 开票驳回 */),
      icon: "close-circle-o",
      color: color.error,
    },
    {
      id: 5000,
      text: messages("components.key261" /* 转账还款提交 */),
      icon: "up-circle-o",
      color: color.processing,
    },
    {
      id: 5001,
      text: messages("components.key262" /* 现金还款提交 */),
      icon: "check-circle-o",
      color: color.processing,
    },
    {
      id: 5002,
      text: messages("components.key263" /* 财务收款通过 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 5003,
      text: messages("components.key264" /* 财务收款驳回 */),
      icon: "close-circle-o",
      color: color.error,
    },
    {
      id: 5004,
      text: messages("components.key241" /* 还款中 */),
      icon: "clock-circle-o",
      color: color.processing,
    },
    {
      id: 5005,
      text: messages("components.key265" /* 企业关闭 */),
      icon: "minus-circle-o",
      color: color.error,
    },
    {
      id: 5006,
      text: messages("components.key266" /* 关闭申请 */),
      icon: "minus-circle-o",
      color: color.error,
    },
    {
      id: 5007,
      text: messages("components.key267" /* 重新启用 */),
      icon: "up-circle-o",
      color: color.processing,
    },
    {
      id: 5009,
      text: messages("components.key268" /* 加签 */),
      icon: null,
      color: null,
    },
    {
      id: 6001,
      text: messages("components.key269" /* 订票专员发起机票信息确认 */),
      icon: "up-circle-o",
      color: color.processing,
    },
    {
      id: 6002,
      text: messages("components.key270" /* 用户确认信息合适 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 6003,
      text: messages("components.key271" /* 用户确认机票不合适 */),
      icon: "close-circle-o",
      color: color.error,
    },
    {
      id: 6004,
      text: messages("components.key272" /* 订票专员发起机票价格审核 */),
      icon: "up-circle-o",
      color: color.processing,
    },
    {
      id: 6005,
      text: messages("components.key273" /* 价格审核通过 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 6006,
      text: messages("components.key274" /* 价格审核驳回 */),
      icon: "close-circle-o",
      color: color.error,
    },
    {
      id: 6007,
      text: messages("components.key275" /* 发起改签 */),
      icon: "up-circle-o",
      color: color.processing,
    },
    {
      id: 6008,
      text: messages("components.key276" /* 发起退票 */),
      icon: "up-circle-o",
      color: color.processing,
    },
    {
      id: 6009,
      text: messages("components.key277" /* 完成改签 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 6010,
      text: messages("components.key278" /* 完成退票 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 6011,
      text: messages("components.key279" /* 完成订票 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 6012,
      text: messages("components.key280" /* 审批通过需要价格审核 */),
      icon: "pay-circle-o",
      color: color.processing,
    },
    {
      id: 7001,
      text: messages("components.key281" /* 核定金额修改 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 7002,
      text: messages("components.key282" /* 核定汇率修改 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 7003,
      text: messages("components.key283" /* 核定金额和汇率修改 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 8001,
      text: messages("components.key284" /* 员工回复 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 8002,
      text: messages("components.key285" /* 附件上传 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 8003,
      text: messages("components.key286" /* 附件删除 */),
      icon: "check-circle-o",
      color: color.success,
    },
    {
      id: 1015,
      text: messages("components.key703") /* 取消支付 */,
      icon: "close-circle-o",
      color: color.error,
    },
    {
      id: 16001,
      text: messages("components.key929") /* 暂挂中 */,
      icon: "lock",
      color: "#58AEC0",
    },
    {
      id: 16002,
      text: messages("components.key930") /* 已取消 */,
      icon: "minus-circle-o",
      color: "#E57770",
    },
    {
      id: 16003,
      text: messages("components.key931") /* 已完成 */,
      icon: "check-circle-o",
      color: "#62BD95",
    },
    {
      id: 16004,
      text: messages("components.key932") /* 取消暂挂 */,
      icon: "unlock",
      color: color.warning,
    },
  ],
  modifyRecord: [
    // 财务角色修改记录
    { value: 101, text: messages("components.key287" /* 创建角色 */) }, // 创建角色
    { value: 102, text: messages("components.key288" /* 修改了基本信息 */) }, // 修改了基本信息
    { value: 103, text: messages("components.key289" /* 修改了人员分配 */) }, // 修改了人员分配
    { value: 104, text: messages("components.key290" /* 修改了组织权限 */) }, // 修改了组织权限
    { value: 105, text: messages("components.key291" /* 修改了页面权限 */) }, // 修改了页面权限
  ],
  bookerType: [
    // 订票类型
    { value: 1001, text: messages("components.key292" /* 订票 */) }, // 订票
    { value: 1002, text: messages("components.key293" /* 改签 */) }, // 改签
    { value: 1003, text: messages("components.key294" /* 退票 */) }, // 退票
  ],
  ticketStatus: [
    // 机票状态
    { value: 1000, text: messages("components.key931") /* 已完成 */ }, // 已完成
    { value: 1001, text: messages("components.key295" /* 待订票 */) }, // 待订票
    { value: 1002, text: messages("components.key296" /* 已退票 */) }, // 已退票
    { value: 1003, text: messages("components.key297" /* 已改签 */) }, // 已改签
    { value: 1004, text: messages("components.key298" /* 已删除 */) }, // 已删除
    { value: 1005, text: messages("components.key299" /* 已订票 */) }, // 已订票
    { value: 1006, text: messages("components.key300" /* 待退票 */) }, // 待退票
    { value: 1007, text: messages("components.key301" /* 待改签 */) }, // 待改签
    { value: 1008, text: messages("components.key302" /* 等待价格审核 */) }, // 等待价格审核
    { value: 1009, text: messages("components.key303" /* 价格审核完成 */) }, // 价格审核完成
    { value: 1010, text: messages("components.key304" /* 价格审核驳回 */) }, // 价格审核驳回
    { value: 1011, text: messages("components.key305" /* 发起退票审批 */) }, // 发起退票审批
    { value: 1012, text: messages("components.key306" /* 发起改签审批 */) }, // 发起改签审批
    { value: 1013, text: messages("components.key307" /* 退票审批驳回 */) }, // 退票审批驳回
    { value: 1014, text: messages("components.key308" /* 改签审批驳回 */) }, // 改签审批驳回
  ],
  ticketConfirmStatus: [
    // 机票进度确认状态
    { value: 1000, text: messages("components.key309" /*-*/) }, // 初始状态
    { value: 1001, text: messages("components.key310" /* 等待信息确认 */) }, // 等待信息确认
    { value: 1002, text: messages("components.key311" /* 信息已确认 */) }, // 信息已确认
    { value: 1003, text: messages("components.key312" /* 信息不合适 */) }, // 信息不合适
  ],
  ticketPriceStatus: [
    // 票价审核状态
    { value: 1001, text: messages("components.key313" /* 申请 */) }, // 申请
    { value: 1005, text: messages("components.key314" /* 等待价格审核 */) }, // 等待价格审核
    { value: 1006, text: messages("components.key315" /* 价格审核完成 */) }, // 价格审核完成
    { value: 1007, text: messages("components.key316" /* 价格审核驳回 */) }, // 价格审核驳回
  ],
  symbolFilter: [
    // 审批条件类型
    { value: 9001, text: "<" },
    { value: 9002, text: "≤" },
    { value: 9003, text: "<" },
    { value: 9004, text: "≤" },
    { value: 9005, text: "=" },
    { value: 9006, text: "!=" },
    { value: 9007, text: messages("components.key317" /* 包含 */) }, // 包含
    { value: 9008, text: messages("components.key318" /* 不包含 */) }, // 不包含
    { value: 9009, text: messages("components.key317" /* 包含 */) }, // 包含
    { value: 9010, text: messages("components.key318" /* 不包含 */) }, // 不包含
    { value: 9011, text: messages("components.key319" /* 范围 */) }, // 范围
    { value: 9012, text: messages("components.key320" /* 是 */) }, // 是
    { value: 9013, text: messages("components.key321" /* 否 */) }, // 否
    { value: 9015, text: messages("components.key322" /* 为空 */) }, // 为空
    { value: 9016, text: messages("components.key323" /* 不为空 */) }, // 不为空
  ],
  cashName: [
    { value: "USD", text: messages("components.key324" /* 美元 */) }, // 美元
    { value: "CNY", text: messages("components.key325" /* 人民币 */) }, // 人民币
    { value: "JPY", text: messages("components.key326" /* 日元 */) }, // 日元
    { value: "SGD", text: messages("components.key327" /* 新加坡元 */) }, // 新加坡元
    { value: "KRW", text: messages("components.key328" /* 韩元 */) }, // 韩元
    { value: "EUR", text: messages("components.key329" /* 欧元 */) }, // 欧元
    { value: "GBP", text: messages("components.key330" /* 英镑 */) }, // 英镑
    { value: "CAD", text: messages("components.key331" /* 加元 */) }, // 加元
    { value: "AUD", text: messages("components.key332" /* 澳币 */) }, // 澳币
    { value: "HKD", text: messages("components.key333" /* 港元 */) }, // 港元
    { value: "SUR", text: messages("components.key334" /* 俄罗斯卢布 */) }, // 俄罗斯卢布
    { value: "CHF", text: messages("components.key335" /* 瑞士法郎 */) }, // 瑞士法郎
    { value: "MYR", text: messages("components.key336" /* 马来西亚令吉 */) }, // 马来西亚令吉
    { value: "ZAR", text: messages("components.key337" /* 南非兰得 */) }, // 南非兰得
    { value: "THB", text: messages("components.key338" /* 泰铢 */) }, // 泰铢
    { value: "SEK", text: messages("components.key339" /* 瑞典克朗 */) }, // 瑞典克朗
    { value: "KES", text: messages("components.key340" /* 肯尼亚先令 */) }, // 肯尼亚先令
    { value: "DKK", text: messages("components.key341" /* 丹麦克朗 */) }, // 丹麦克朗
    { value: "CLP", text: messages("components.key342" /* 智利比索 */) }, // 智利比索
    { value: "PHP", text: messages("components.key343" /* 菲律宾比索 */) }, // 菲律宾比索
    { value: "MXN", text: messages("components.key344" /* 墨西哥比索 */) }, // 墨西哥比索
    { value: "AED", text: messages("components.key345" /* 阿联酋迪尔汗 */) }, // 阿联酋迪尔汗
    { value: "INR", text: messages("components.key346" /* 印度卢比 */) }, // 印度卢比
    { value: "RUB", text: messages("components.key347" /* 俄罗斯卢布 */) }, // 俄罗斯卢布
    { value: "BRL", text: messages("components.key348" /* 巴西雷亚尔 */) }, // 巴西雷亚尔
    { value: "NZD", text: messages("components.key349" /* 纽西兰元 */) }, // 纽西兰元
    { value: "BGN", text: messages("components.key350" /* 保加利亚列瓦 */) }, // 保加利亚列瓦
    { value: "BIF", text: messages("components.key351" /* 布隆迪法郎 */) }, // 布隆迪法郎
  ],
  autoAuditType: [
    // 财务自动审核类型
    { value: 1001, text: "发票标签" },
    { value: 1002, text: "电子发票原件" },
    { value: 2001, text: "费用标签" },
    { value: 2002, text: "附件" },
    { value: 2003, text: "费用类型" },
    { value: 2004, text: "费用金额" },
    { value: 3001, text: "收款方类型" },
    { value: 4001, text: "单据标签" },
    { value: 4002, text: "附件" },
    { value: 4003, text: "单据类型" },
    { value: 4004, text: "单据金额" },
  ],
  autoAuditRelative: [
    // 自动审核相关类型
    { value: 1000, text: "发票相关" },
    { value: 2000, text: "费用相关" },
    { value: 3000, text: "付款相关" },
    { value: 4000, text: "单据相关" },
  ],
  /*
   * 第三方OA 统一跳转 新中控，路由配置,后来重新整理，根据 messageType 来跳转对应url
   * 元素字段说明
   * name 路由名字，暂时对逻辑没有影响
   * messageType 消息类型，根据此判断跳转哪一个路由
   * requireParams 跳转路由需要的参数，一个或者多个，需要替换路由中对应的参数
   * targetUrl 需要跳转的路由
   * */
  unifiedJumpConfig: [
    {
      name: "申请单列表",
      messageType: ["APPLICATION_LIST"],
      requireParams: [],
      targetUrl: "/main/my-travel/travel-and-booking",
    },
    {
      name: "待还款",
      messageType: ["LOAN_BILLING_MANAGEMENT"],
      requireParams: [],
      targetUrl: "/main/loan-billing/borrow-management",
    },
    {
      name: "新建报销单",
      messageType: ["CREATE_EXPENSE_REPORT_MANAGEMENT"],
      requireParams: [],
      targetUrl: "/main/expense-parent-report/expense-report",
    },
    {
      name: "借款单已经提交",
      messageType: ["LOAN_APPLICATION_SUBMITTED"],
      requireParams: ["formOID", "loanBillOID"],
      targetUrl:
        "main/loan-billing/my-borrow/loan-detail/:formOID/:loanBillOID/:pageFrom",
    },
    {
      name: "我的报销单详情",
      messageType: [
        "EXPENSE_REPORT_REJECT",
        "EXPENSE_REPORT_PASS",
        "EXPENSE_REPORT_AUDIT_NOTICE",
        "REVEIEWED_AMOUNT",
        "EXPENSE_REPORT_AUDIT_PASS",
        "EXPENSE_REPORT_AUDIT_REJECT",
        "EXPENSE_REPORT_PAY_FAILED",
        "EXPENSE_REPORT_SUBMITTED", // 报销单已经提交
      ],
      requireParams: ["referenceId"],
      targetUrl:
        "/main/expense-parent-report/expense-report/expense-report-detail/:referenceId/my",
    },
    {
      name: "报销单待审批",
      messageType: ["EXPENSE_REPORT_APPROVAL"],
      requireParams: ["referenceId", "approverOID"],
      // requireParams: ["approverOID", 'expenseReportOID'],
      targetUrl:
        "/main/todo/to-be-approve/approve-expense-report/approve-expense-report-detail/:referenceId?approvePending=true&approverOID=:approverOID&backUrlKey=to-be-approve",
    },
    {
      name: "我的账本",
      messageType: [
        "EXPENSE_REPORT_INVOICE_AUDIT_REJECT",
        "EXPENSE_REPORT_INVOICE_REJECT",
        "INVOICE_REJECT",
      ],
      requireParams: [],
      targetUrl: "/main/my-account",
    },
    {
      name: "借款单，待审批详情页面",
      messageType: ["LOAN_APPLICATION_APPROVAL"],
      requireParams: ["formOID", "referenceId", "approverOID"],
      targetUrl:
        "/main/todo/to-be-approve/approve-loan/approve-loan-detail/:formOID/:referenceId/history?approving=true&approverOID=:approverOID&backUrlKey=to-be-approve",
    },
    {
      name: "申请单审批，待审批详情页面",
      messageType: [
        "TRAVEL_APPLICATION_APPROVAL",
        "EXPENSE_APPLICATION_APPROVAL",
      ],
      requireParams: ["formOID", "referenceId", "approverOID"],
      // requireParams: ["formOID", "applicationOID", 'approverOID'],
      targetUrl:
        "/main/todo/to-be-approve/approve-request/approve-request-detail/:formOID/:referenceId?approving=true&approverOID=:approverOID&backUrlKey=to-be-approve",
    },
    {
      name: "申请单审批通过，借款单审核，待审核详情页面",
      messageType: [
        "TRAVEL_APPLICATION_PASS",
        "EXPENSE_APPLICATION_PASS",
        "LOAN_APPLICATION_PASS",
        "EXPENSE_APPLICATION_SUBMITTED", // 费用申请单已经提交
        "TRAVEL_APPLICATION_SUBMITTED", // 差旅申请单已经提交
        "LOAN_APPLICATION_AUDIT_NOTICE", // 借款单审核通知
      ],
      requireParams: ["formOID", "referenceId"],
      targetUrl: "/main/done/done-approved/approve-request/approve-request-detail/:formOID/:referenceId?backUrlKey=done-approved",
    },
    {
      name: "申请单审批驳回",
      messageType: [
        "TRAVEL_APPLICATION_REJECT",
        "EXPENSE_APPLICATION_REJECT",
        "LOAN_APPLICATION_REJECT",
      ],
      requireParams: ["formOID", "referenceId"],
      targetUrl: "/main/request/request-edit/:formOID/:referenceId",
    },
    {
      name: "申请单只读",
      messageType: ["APPLICATION_READONLY"],
      requireParams: ["formOID", "referenceId"],
      targetUrl:
        "/main/request/request-detail/:formOID/:referenceId/my?readOnly=true",
    },
    {
      name: "报销单只读",
      messageType: ["EXPENSE_REPORT_READONLY"],
      requireParams: ["referenceId"],
      targetUrl:
        "/main/expense-parent-report/expense-report/expense-report-detail/:referenceId/my?readOnly=true",
    },
    {
      name: "待审批列表",
      messageType: ["APPROVAL_PENDING"],
      requireParams: [],
      targetUrl: "/main/approve/:entityType",
    },
    {
      name: "财务查看报销单",
      messageType: ["FINANCE_EXPENSE_REPORT"],
      requireParams: ["expenseReportOID"],
      targetUrl:
        "/main/financial-management/finance-view-expense/expense-report-detail-view/:expenseReportOID",
    },
    {
      name: "财务查看借款单",
      messageType: ["FINANCE_APPLICATION"],
      requireParams: ["formOID", "loanBillOID"],
      targetUrl:
        "/main/financial-management/finance-view-loan/loan-detail-view/:formOID/:loanBillOID",
    },
    {
      name: "财务查看申请单",
      messageType: ["FINANCE_LOAN_APPLICATION"],
      requireParams: ["formOID", "applicationOID"],
      targetUrl:
        "/main/financial-management/check-cost-application/cost-application-detail/:formOID/:applicationOID?readOnly=true",
    },
    {
      name: "差旅申请单审批驳回",
      messageType: ['TRAVEL_APPLICATION_REJECT_CL'],
      requireParams: ["formOID", "referenceId"],
      targetUrl: "/main/my-travel/travel-and-booking/travel-and-booking-edit/:formOID/:referenceId?backUrlKey=travel-and-booking",
    },
    {
      name: "公务卡申请单审批驳回",
      messageType: ['EXPENSE_APPLICATION_REJECT_CARD'],
      requireParams: ["formOID", "referenceId"],
      targetUrl: "/main/applications/public-service-card-application/public-service-card-application-edit/:formOID/:referenceId?backUrlKey=public-service-card-application",
    },
    {
      name: "特殊事项申请单审批驳回",
      messageType: ['EXPENSE_APPLICATION_REJECT_TS'],
      requireParams: ["formOID", "referenceId"],
      targetUrl: "/main/applications/other-application/other-application-edit/:formOID/:referenceId?backUrlKey=other-application",
    },
    {
      name: "代理申请单审批驳回",
      messageType: ['EXPENSE_APPLICATION_REJECT_DL'],
      requireParams: ["formOID", "referenceId"],
      targetUrl: "/main/applications/agency-application/agency-application-edit/:formOID/:referenceId?backUrlKey=agency-application",
    },
    {
      name: "工会礼品卡申请单审批驳回",
      messageType: ['EXPENSE_APPLICATION_REJECT_JIFTGH'],
      requireParams: ["formOID", "referenceId", 'id'],
      targetUrl: "/main/union/union-request/union-request-giftDetail/:formOID/:referenceId/:id?backUrlKey=union-request",
    },
    {
      name: "商务应酬申请单审批驳回(编辑)",
      messageType: ['EXPENSE_APPLICATION_REJECT_BUSINESS'],
      requireParams: ["formOID", "referenceId"],
      targetUrl: "/main/applications/business-and-gift-application/business-and-gift-application-edit/:formOID/:referenceId?backUrlKey=business-and-gift-application",
    },
    {
      name: "商务应酬申请单审批驳回(详情)",
      messageType: ['EXPENSE_APPLICATION_REJECT_JIFT'],
      requireParams: ["formOID", "referenceId", 'id'],
      targetUrl: "/main/applications/business-and-gift-application/business-and-gift-application-giftDetail/:formOID/:referenceId/:id?backUrlKey=business-and-gift-application",
    },
    {
      name: "借款单审批驳回(详情)",
      messageType: ['LOAN_APPLICATION_REJECT_JK'],
      requireParams: ["formOID", "referenceId"],
      targetUrl: "/main/loan-billing/my-borrow/loan-detail/:formOID/:referenceId/:pageFrom/:applicationOID",
    },
    {
      name: "工会报销单详情",
      messageType: ['EXPENSE_REPORT_REJECT_GH'],
      requireParams: ["referenceId"],
      targetUrl:
        "/main/union/union-expense-report/expense-report-detail/:referenceId/my?backUrlKey=union-expense-report",
    },
    {
      name: "礼品领用单(详情)",
      messageType: ['EXPENSE_APPLICATION_APPROVAL_JIFT'],
      requireParams: ["formOID", "referenceId", "id"],
      targetUrl: "/main/applications/business-and-gift-application/business-and-gift-application-giftDetail/:formOID/:referenceId/:id?backUrlKey=business-and-gift-application",
    },
    {
      name: "礼品领用单确认签收",
      messageType: ['EXPENSE_APPLICATION_APPROVAL_QS'],
      requireParams: ["formOID", "referenceId", "approverOID"],
      // requireParams: ["formOID", "applicationOID", 'approverOID'],
      targetUrl:
        "/main/todo/to-be-approve/approve-request/approve-request-detail/:formOID/:referenceId?approving=true&approverOID=:approverOID&nodeName=签收确认&backUrlKey=to-be-approve",
    },
    {
      name: "礼品申请单预约领取",
      messageType: ['EXPENSE_APPLICATION_APPROVAL_YYLQ'],
      requireParams: ["formOID", "referenceId", "approverOID"],
      // requireParams: ["formOID", "applicationOID", 'approverOID'],
      targetUrl:
        "/main/todo/to-be-approve/approve-request/approve-request-detail/:formOID/:referenceId?approving=true&approverOID=:approverOID&nodeName=预约领取&backUrlKey=to-be-approve",
    },
    {
      name: "礼品申请已出库（行维度）",
      messageType: ['GIFT_APPLICATION_HAS_BEEN_ISSUED'],
      requireParams: ["formOID", "referenceId", "approverOID"],
      // requireParams: ["formOID", "applicationOID", 'approverOID'],
      targetUrl:
        "/main/todo/to-be-approve/approve-request/approve-request-detail/:formOID/:referenceId?approving=true&approverOID=:approverOID&nodeName=确认签收/遗失&backUrlKey=to-be-approve",
    },
    {
      name: "礼品申请单审批通过，卡券待发货",
      messageType: ['GIFT_APPLICATION_TO_BE_SHIPPED'],
      requireParams: ["formOID", "referenceId", "approverOID"],
      // requireParams: ["formOID", "applicationOID", 'approverOID'],
      targetUrl:
      "/main/financial-management/check-cost-application/cost-application-detail/:formOID/:referenceId?readOnly=true",
    },
    {
      name: "礼品申请已自动签收（行维度）",
      messageType: ['GIFT_APPLICATION_SIGNED_AUTOMATICALLY'],
      requireParams: ["formOID", "referenceId", "approverOID"],
      // requireParams: ["formOID", "applicationOID", 'approverOID'],
      targetUrl:
        "/main/financial-management/check-cost-application/cost-application-detail/:formOID/:referenceId?readOnly=true",
    },
  ],
  // 费用标准符号
  restrictions: [
    {
      value: 1000,
      text: messages("components.key933") /* 不限 */,
    },
    {
      value: 1001,
      text: "=",
    },
    {
      value: 1002,
      text: ">",
    },
    {
      value: 1003,
      text: "≥",
    },
    {
      value: 1004,
      text: "<",
    },
    {
      value: 1005,
      text: "≤",
    },
    {
      value: 1006,
      text: messages("components.key317") /* 包含 */,
    },
    {
      value: 1007,
      text: messages("components.key318") /* 不包含 */,
    },
    {
      value: 1008,
      text: messages("components.key934") /* 区间 */,
    },
    {
      value: 1009,
      text: messages("components.key322") /* 为空 */,
    },
    {
      value: 1010,
      text: messages("components.key323") /* 不为空 */,
    },
  ],
  acceptFileTypes:
    "application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,image/*,application/vnd.ms-excel,application/zip,application/vnd.ms-powerpoint,application/pdf,.rar,.text,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,.ppt,.pptx,.txt,.msg",
  dashboardTips: {
    am: [
      messages(
        "components.key352" /* 新的一天一定要元气满满哦！小汇给你加油！ */
      ),
      messages(
        "components.key353" /* 天地间，我是一粒微尘。宇宙里，我是一粒飞沙，小汇陪你珍惜每一天！ */
      ),
      messages(
        "components.key354" /* 花儿也许绽放不了一个季节，但我们可以微笑人生，开启绚烂一生！ */
      ),
      messages(
        "components.key355" /* 伴随着清晨一缕阳光，你还在等什么呢，加油工作吧！ */
      ),
      messages(
        "components.key356" /* 新的一天就要大胆尝试，努力收获，在人生的道路上不断前进。 */
      ),
      messages(
        "components.key357" /* 每一个日出，总想带去希望的问候：让每天的空气都被好心情占满。 */
      ),
      messages(
        "components.key358" /* 每一个清晨，伴着阳光上路，给自己一个微笑，告诉自己今天会更美好。 */
      ),
      messages(
        "components.key359" /* 世界上最棒的事是，每天早上醒来又是崭新的一天。 */
      ),
    ],
    pm: [
      messages(
        "components.key360" /* 只要你自己把握住人生的金钥匙，人生的价值就会闪闪发光！ */
      ),
      messages(
        "components.key361" /* 认真工作的同时也要注意休息哦！小汇也在陪伴着你！ */
      ),
      messages(
        "components.key362" /* 时光偷走的，永远都是我们眼皮底下看不见的珍贵！努力工作吧！ */
      ),
      messages(
        "components.key363" /* 生命就是一杯清茶，就是一支歌谣静静，享受这美丽的人生！ */
      ),
      messages(
        "components.key364" /* 凡事从小做起，不怕单调和重复，长期的积累坚持，加油！ */
      ),
      messages(
        "components.key365" /* 用乐观的心情做事，用善良的心肠待人，人生一定很快乐。 */
      ),
      messages(
        "components.key366" /* 你是你人生的作者，人生的剧本也是由你掌控。 */
      ),
      messages(
        "components.key367" /* 人生的道路都是由心来描绘的，所以不论遇到什么困难，都要乐观！ */
      ),
    ],
    night: [
      messages(
        "components.key368" /* 人生不要设计得太挤。不管做什么，都要给自己留点空间。小汇也累了呢！ */
      ),
      messages(
        "components.key369" /* 下班后就丢弃世俗杂念，丢弃功名利禄，遨游在自己的小宇宙中吧！ */
      ),
      messages(
        "components.key370" /* 工作后一定要注意休息哦，不要累坏了自己！小汇也要休息了！ */
      ),
      messages(
        "components.key371" /* 生活需要微笑，微笑让这个世界变得更加温暖，下班后就要微笑哦！ */
      ),
      messages(
        "components.key372" /* 活着就为了幸福，而幸福，是我们的追求，下班了好幸福哦！ */
      ),
      messages(
        "components.key373" /* 如果累了，就拉上窗帘关上手机关掉闹钟深呼吸一口气钻进被窝，放空去睡觉。 */
      ),
      messages(
        "components.key374" /* 人生不要设计得太挤。不管做什么，都要给自己留点空间。小汇也累了呢！ */
      ),
      messages(
        "components.key375" /* 下班后就丢弃世俗杂念，丢弃功名利禄，遨游在自己的小宇宙中吧！ */
      ),
    ],
  },
  creditRuleOperation: [
    {
      text: messages("components.key741") /* 加分 */,
      value: 1001,
    },
    {
      text: messages("components.key742") /* 减分 */,
      value: 1002,
    },
    {
      text: messages("components.key743") /* 升级 */,
      value: 1003,
    },
    {
      text: messages("components.key744") /* 降级 */,
      value: 1004,
    },
  ],
  signalList: [
    {
      sign: "+",
      id: "1001",
      description: "加法",
      priority: 1,
    },
    {
      sign: "-",
      id: "1002",
      description: "减法",
      priority: 1,
    },
    {
      sign: "*",
      id: "1003",
      description: "乘法",
      priority: 2,
    },
    {
      sign: "/",
      id: "1004",
      description: "除法",
      priority: 2,
    },
    {
      sign: "=",
      id: "3001",
      description: "等于",
      priority: 1,
    },
    {
      sign: ">",
      id: "3002",
      description: "大于",
      priority: 1,
    },
    {
      sign: "<",
      id: "3003",
      description: "小于",
      priority: 1,
    },
    {
      sign: "contain",
      id: "3004",
      description: "包含",
      priority: 1,
    },
    {
      sign: "!=",
      id: "3005",
      description: "不等于",
      priority: 1,
    },
    {
      sign: "and",
      id: "3006",
      description: "且",
      priority: 0,
    },
    {
      sign: "or",
      id: "3007",
      description: "或",
      priority: 0,
    },
    { sign: "()", id: "10000", description: "括号" },
  ],
  funcList: [
    {
      sign: "IF",
      id: "2001",
      description: "IF函数，IF(判断条件，满足条件执行，不满足条件执行)",
      type: "if",
    },
    {
      sign: "MID",
      id: "2004",
      description: "MID函数，MID(字段，要抽取的子串的起始下标，子串中的字符数)",
      type: "mid",
    },
    {
      sign: "Len",
      id: "2005",
      description: "统计字符串长度",
      type: "len",
    },
    {
      sign: "DATE",
      id: "4001",
      description:
        "DATE函数，DATE(字段，格式化的形式)，例如DATE(报销单提交日期,YYYY-MM-DD)",
      type: "date",
    },
    {
      sign: "GetAccountName",
      id: "5001",
      description: "获取当前会计科目的名称",
      type: "getAccountName",
    },
  ],
  ruleDefined: [
    {
      title: messages("components.key973") /* 导出凭证号计数 */,
      code: "ExportCounter",
      description: messages(
        "components.key974"
      ) /* 导出时，在文件中，自动根据凭证号计数 */,
    },
    {
      title: messages("components.key975") /* 分录行号计数 */,
      code: "EntryCounter",
      description: messages(
        "components.key976"
      ) /* 根据规则生成分录后，同凭证内进行分录行号计数 */,
    },
  ],
  creditRuleOperator: [
    { value: 1001, name: messages("components.key1070") /* 超过 */ },
    { value: 1002, name: messages("components.key1071") /* 不超过 */ },
  ],
  receiptOptions: [
    { label: messages("components.key1072") /* 未收单 */, value: 0 },
    { label: messages("components.key1073") /* 已收单 */, value: 1 },
    { label: messages("components.key1074") /* 已退单 */, value: 2 },
  ],

  sendBillOptions: [
    { label: messages("common-1.key1179") /*未寄单*/, value: 0 },
    { label: messages("common-1.key1180") /*已寄单*/, value: 1 },
    { label: messages("common-1.key1178") /*已退单*/, value: 2 },
  ],
  targetMessageKeys: {
    "associate.application": {
      title: messages("common-1.key1181") /*关联申请单*/,
      render: (field) => field.showValue,
    },
    "company.paid": {
      title: messages("common-1.key1182") /*公司已付*/,
      render: (field) => field.showValue,
    },
    dateCombined: {
      title: messages("common-1.key681") /*开始结束日期*/,
      width: 200,
      render: (field) => {
        let showValue;
        if (field.showValue) {
          const data = JSON.parse(field.showValue);
          showValue = `${moment(ignoreTimeZone(data.startDate)).format(
            "YYYY-MM-DD"
          )} ~ ${moment(ignoreTimeZone(data.endDate)).format("YYYY-MM-DD")}`;
        } else {
          showValue = "-";
        }
        return showValue;
      },
    },
    "start.time": {
      title: messages("common-1.key1183") /*出发时间*/,
      render: (field) =>
        field.showValue
          ? new Date(field.showValue).format("yyyy-MM-dd hh:mm:ss")
          : "-",
    },
    "end.time": {
      title: messages("common-1.key1184") /*到达时间*/,
      render: (field) =>
        field.showValue
          ? new Date(field.showValue).format("yyyy-MM-dd hh:mm:ss")
          : "-",
    },
    "ctrip.car.start.time": {
      title: messages("common-1.key1183") /*出发时间*/,
      render: (field) =>
        field.showValue
          ? new Date(field.showValue).format("yyyy-MM-dd hh:mm:ss")
          : "-",
    },
    "ctrip.car.end.time": {
      title: messages("common-1.key1183") /*出发时间*/,
      render: (field) =>
        field.showValue
          ? new Date(field.showValue).format("yyyy-MM-dd hh:mm:ss")
          : "-",
    },
    "checkin.date": {
      title: messages("common-1.key1185") /*入住日期*/,
      render: (field) =>
        field.showValue ? new Date(field.showValue).format("yyyy-MM-dd") : "-",
    },
    "checkout.date": {
      title: messages("common-1.key1186") /*离店日期*/,
      render: (field) =>
        field.showValue ? new Date(field.showValue).format("yyyy-MM-dd") : "-",
    },
    days: {
      title: messages("common-1.key1187") /*入住天数*/,
      render: (field) => field.showValue,
    },
    "departure.location": {
      title: messages("common-1.key1188") /*出发地*/,
      render: (field) => field.showValue,
    },
    "destination.location": {
      title: messages("common-1.key1189") /*目的地*/,
      render: (field) => field.showValue,
    },
    "normal.distance": {
      title: messages("common-1.key1190") /*总里程*/,
      render: (field) => field.showValue,
    },
    ER_KM: {
      title: messages("common-1.key1191") /*里程*/,
      render: (field) => field.showValue,
    },
    "origin.city.name": {
      title: messages("common-1.key1192") /*出发城市名称*/,
      render: (field) => field.showValue,
    },
    "destination.city.name": {
      title: messages("common-1.key1193") /*到达城市名称*/,
      render: (field) => field.showValue,
    },
    "ctrip.car.departure.location": {
      title: messages("common-1.key1188") /*出发地*/,
      render: (field) => field.showValue,
    },
    "ctrip.car.destination.location": {
      title: messages("common-1.key1189") /*目的地*/,
      render: (field) => field.showValue,
    },
    "require.level": {
      title: messages("common-1.key1194") /*车型*/,
      render: (field) => field.showValue,
    },
    "ctrip.car.vehicle.type": {
      title: messages("common-1.key1194") /*车型*/,
      render: (field) => field.showValue,
    },
    city: {
      title: messages("common-1.key1195") /*城市名称*/,
      render: (field) => field.showValue,
    },
    location: {
      title: messages("common-1.key813") /*城市*/,
      render: (field) => field.showValue,
    },
    participant: {
      title: messages("common-1.key1196") /*同行人*/,
      render: (field) => field.showValue,
    },
    participants: {
      title: messages("common-1.key1197") /*参与人*/,
      render: (field) => field.showValue,
    },
    "business.type": {
      title: messages("common-1.key992") /*业务用途*/,
      render: (field) => field.showValue,
    },
    "helios.train.seat": {
      title: messages("common-1.key1198") /*火车座等*/,
      render: (field) => field.showValue,
    },
    "helios.plane.cabin": {
      title: messages("common-1.key1199") /*飞机舱位*/,
      render: (field) => field.showValue,
    },
    "helios.ship.seat": {
      title: messages("common-1.key1200") /*轮船座次*/,
      render: (field) => field.showValue,
    },
    "helios.reimbursement.type": {
      title: messages("common-1.key757") /*报销类型*/,
      render: (field) => field.showValue,
    },
    "helios.number.of.hospitalized": {
      title: messages("common-1.key1201") /*招待人数*/,
      render: (field) => field.showValue,
    },
    "helios.number.of.accompanying": {
      title: messages("common-1.key1202") /*陪同人数*/,
      render: (field) => field.showValue,
    },
  },
  levelCode: {
    SET_OF_BOOK: messages("common-1.key1203") /*帐套*/,
    COMPANY: messages("common-1.key423") /*公司*/,
    TENANT: messages("common-1.key424") /*租户*/,
  },
  paymentMethod: {
    1: messages("common-1.key930") /*线上*/,
    2: messages("common-1.key931") /*线下*/,
    4: messages("common-1.key932") /*落地文件*/,
  },
  taxpayerType: [
    {
      name: messages("common-1.key1204") /*一般纳税人*/,
      value: "01",
    },
    {
      name: messages("common-1.key1205") /*小规模纳税人*/,
      value: "99",
    },
  ],
  //员工状态
  employeeStatusList: {
    1001: messages("common-1.key1206") /*在职员工*/,
    1002: messages("common-1.key868") /*待离职员工*/,
    1003: messages("common-1.key869") /*离职员工*/,
    all: messages("common-1.key1207") /*全部员工*/,
  },
  // 费用属性
  expenseAttrs: [
    {
      value: "COMMUNITACTION",
      name: messages("expense-6.key118") /*通讯*/,
      defaultControls: ["helios.dateCombined"],
    },
    {
      value: "PLANE",
      name: messages("expense-6.key119") /*机票*/,
      defaultControls: [
        "helios.departure.destination.city",
        "helios.dateCombined",
        "helios.plane.cabin",
        "helios.discount",
      ],
    },
    {
      value: "ACCOMMODATION",
      name: messages("expense-6.key120") /*住宿*/,
      defaultControls: ["helios.dateCombined"],
    },
    {
      value: "MEAL",
      name: messages("expense-6.key121") /*餐饮*/,
      defaultControls: ["helios.location"],
    },
    {
      value: "CAR",
      name: messages("expense-6.key122") /*用车*/,
      defaultControls: [
        "helios.location",
        "helios.departure.destination.location",
        "helios.dateCombined",
      ],
    },
    {
      value: "TRAIN",
      name: messages("expense-6.key123") /*火车*/,
      defaultControls: [
        "helios.departure.destination.city",
        "helios.train.seat",
      ],
    },
    {
      value: "SHIP",
      name: messages("expense-6.key124") /*轮船*/,
      defaultControls: [
        "helios.departure.destination.city",
        "helios.ship.seat",
      ],
    },
    {
      value: "OTHER",
      name: messages("expense-6.key125") /*其他*/,
      defaultControls: [],
    },
  ],
  provinceCode: [
    "CHN062000000",
    "CHN063000000",
    "CHN065000000",
    "CHN071000000",
    "CHN043000000",
    "CHN053000000",
    "CHN054000000",
    "CHN014000000",
    "CHN015000000",
    "CHN022000000",
    "CHN035000000",
    "CHN044000000",
    "CHN045000000",
    "CHN046000000",
    "CHN051000000",
    "CHN061000000",
    "CHN064000000",
    "CHN032000000",
    "CHN036000000",
    "CHN037000000",
    "CHN041000000",
    "CHN042000000",
    "CHN013000000",
    "CHN021000000",
    "CHN023000000",
    "CHN033000000",
    "CHN034000000",
    "CHN052000000",
  ],
  documentLoanStatus: [
    {
      text: messages("components.key223" /* 全部 */),
      value: "1001100210031004100510061007100810111012",
      operate: "",
    }, // 全部
    {
      text: messages("components.key212" /* 编辑中 */),
      value: "1001",
      state: "processing",
      operate: "edit",
      color: color.processing,
    }, // 编辑中
    {
      text: messages("components.key213" /* 已撤回 */),
      value: "10011001",
      state: "warning",
      operate: "edit",
      color: color.warning,
    }, // 已撤回 rejectType === 1001
    {
      text: messages("components.key215" /* 已驳回 */),
      value: "10011002",
      state: "error",
      operate: "edit",
      color: color.error,
    }, // 已驳回 rejectType === 1002
    {
      text: messages("components.key219" /* 审核驳回 */),
      value: "10011003",
      state: "error",
      operate: "edit",
      color: color.error,
    }, // 审核驳回 rejectType === 1003
    {
      text: messages("components.key220" /* 开票驳回 */),
      value: "10011004",
      state: "error",
      operate: "edit",
      color: color.error,
    }, // 开票驳回 rejectType === 1004
    {
      text: messages("components.key214" /* 审批中 */),
      value: "1002",
      state: "processing",
      operate: "processing",
      color: color.processing,
    }, // 审批中
    {
      text: messages("components.key216" /* 已通过 */),
      value: "1003",
      state: "success",
      operate: "finish",
      color: color.success,
    }, // 已通过
    {
      text: messages("components.key217" /* 审核通过 */),
      value: "1004",
      state: "success",
      operate: "finish",
      color: color.success,
    }, // 审核通过
    {
      text: messages("components.key221" /* 已付款 */),
      value: "1005",
      state: "success",
      operate: "pay",
      color: color.closed,
    }, // 已付款
    {
      text: messages("components.key224" /* 还款中 */),
      value: "1006",
      state: "processing",
      operate: "processing",
      color: color.processing,
    }, // 还款中
    {
      text: messages("components.key218" /* 开票通过 */),
      value: "1007",
      state: "success",
      operate: "billing",
      color: color.success,
    }, // 开票通过
    {
      text: messages("components.key225" /* 已还款 */),
      value: "10072006",
      state: "success",
      operate: "finish",
      color: color.success,
    }, // 已还款 applicationType === 2006
    {
      text: messages("components.key225" /* 已还款 */),
      value: "10072005",
      state: "success",
      operate: "finish",
      color: color.success,
    }, // 已还款 applicationType === 2005
    {
      text: messages("components.key222" /* 付款中 */),
      value: "1008",
      state: "processing",
      operate: "pay",
      color: color.processing,
    }, // 付款中
    {
      text: messages("components.key226" /* 已关闭 */),
      value: "1009",
      state: "default",
      operate: "",
      color: color.closed,
    }, // 已关闭
    {
      text: messages("components.key1318" /* 转永久 */),
      value: "1011",
      state: "default",
      operate: "",
      color: color.success,
    }, // 已更改\
    {
      text: messages("components.key703") /* 取消支付 */,
      value: "1015",
      state: "error",
      operate: "",
      color: color.error,
    }, // 取消支付
    {
      text: messages("components.keyS02") /* 已签收 */,
      value: "1013",
      state: "error",
      operate: "",
      color: color.error
    },
    {
      text: messages("components.key1319") /* 延长 */,
      value: "1012",
      state: "default",
      operate: "",
      color: color.success
    }
  ],
};
